﻿using System.Collections.Generic;
using System.Web;
using System.Linq;

namespace PmSadis.Providers
{
    /// <summary>
    /// Кеш приложения
    /// </summary>
    public static class AppCache
    {
        /// <summary>
        /// Месяцы
        /// </summary>
        public static List<PmSadis.Models.Month> Monthes
        {
            get
            {
                var cacheMonthes = HttpContext.Current.Cache["cache-monthes"];
                return cacheMonthes != null
                    ? cacheMonthes as List<PmSadis.Models.Month>
                    : new List<PmSadis.Models.Month>();
            }
        }
    }
}
